package org.vacoor.ticket.bean;

import java.util.Map;
/**
 * 封装从服务器查询出的余票信息
 * @author vacoor
 *
 */
public class TicketDto {
	private String trainId; // 列车编号
	private String trainNo; // 车次
	private String fromStationName; // 出发站名称
	private String fromStationCode; // 出发站代码
	private String arriveStationName; // 目的站名称
	private String arriveStationCode; // 目的站代码
	private String startTime; // 出发站发车时间
	private String endTime; // 目的站到达时间
	private String countTime; // 历时
	private String fromStationNo; //
	private String arriveStationNo; //
	private String remainTicketsDetail; 	//余票详情字符串
	private String mmStr;
	private String locationCode;
	
	private Map<SeatType, Integer> seatInfo;
	
	public Map<SeatType, Integer> getSeatInfo() {
		return seatInfo;
	}
	
	public void setSeatInfo(Map<SeatType,Integer> seatInfo) {
		this.seatInfo = seatInfo;
	}

	public String getTrainNo() {
		return trainId;
	}

	public void setTrainNo(String trainNo) {
		this.trainId = trainNo;
	}

	public String getTrainCode() {
		return trainNo;
	}

	public void setTrainCode(String trainCode) {
		this.trainNo = trainCode;
	}

	public String getFromStationName() {
		return fromStationName;
	}

	public void setFromStationName(String fromStationName) {
		this.fromStationName = fromStationName;
	}

	public String getFromStationCode() {
		return fromStationCode;
	}

	public void setFromStationCode(String fromStationCode) {
		this.fromStationCode = fromStationCode;
	}

	public String getArriveStationName() {
		return arriveStationName;
	}

	public void setArriveStationName(String arriveStationName) {
		this.arriveStationName = arriveStationName;
	}

	public String getArriveStationCode() {
		return arriveStationCode;
	}

	public void setArriveStationCode(String arriveStationCode) {
		this.arriveStationCode = arriveStationCode;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getCountTime() {
		return countTime;
	}

	public void setCountTime(String countTime) {
		this.countTime = countTime;
	}

	public String getFromStationNo() {
		return fromStationNo;
	}

	public void setFromStationNo(String fromStationNo) {
		this.fromStationNo = fromStationNo;
	}

	public String getArriveStationNo() {
		return arriveStationNo;
	}

	public void setArriveStationNo(String arriveStationNo) {
		this.arriveStationNo = arriveStationNo;
	}

	public String getRemainTicketsDetail() {
		return remainTicketsDetail;
	}

	public void setRemainTicketsDetail(String remainTicketsDetail) {
		this.remainTicketsDetail = remainTicketsDetail;
	}

	public String getMmStr() {
		return mmStr;
	}

	public void setMmStr(String mmStr) {
		this.mmStr = mmStr;
	}

	public String getLocationCode() {
		return locationCode;
	}

	public void setLocationCode(String locationCode) {
		this.locationCode = locationCode;
	}

	@Override
	public String toString() {
		return "TicketDto [列车编号=" + trainId + ", 车次=" + trainNo
				+ ", 出发站=" + fromStationName + ", 出发站代码="
				+ fromStationCode + ", 目的站=" + arriveStationName
				+ ", 目的站代码=" + arriveStationCode + ", 出发站发车时间="
				+ startTime + ", 目的地到达时间=" + endTime + ", 历时="
				+ countTime + ", fromStationNo=" + fromStationNo
				+ ", arriveStationNo=" + arriveStationNo + ", 余票详情="
				+ remainTicketsDetail + ", mmStr=" + mmStr + ", locationCode="
				+ locationCode + "]";
	}
	
}